﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:models="clr-namespace:InsuranceAdjuster.Models"
    xmlns:dataModels="clr-namespace:InsuranceAdjuster.Web.Models"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    mc:Ignorable="d">
    
    
    
<!--States ComboBox Data Template-->
    <DataTemplate DataType="dataModels:State">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding StateCode}" Margin="0,0,10,0"/>
                <TextBlock Text="{Binding StateName}"
                           Visibility="{Binding IsDropDownOpen,
                    RelativeSource={RelativeSource AncestorType=ComboBox},
                    Converter={StaticResource BoolToVisibilityConverter}}"
                />
            </StackPanel>
    </DataTemplate>






    <!-- Relative Source Ancestor Binding
                    Visibility="{Binding IsDropDownOpen, 
                        RelativeSource={RelativeSource AncestorType=ComboBox},
                        Converter={StaticResource BoolToVisibilityConverter}
                        }"
                -->

    <!--Implicit Data Templates-->
<!--
    <DataTemplate DataType="dataModels:State">
-->





    
    
    
    
    <!--x:Key="VehiclesDataTemplate" -->
    <!--x:Name="vehicleDataTemplate"-->
    <!--Default Vehicle DataTemplate-->
    <DataTemplate DataType="models:Vehicle" x:Key="vehicleDataTemplate">
        <Grid Background="{StaticResource VehicleCarBackground}" Width="661">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="98"/>
                <ColumnDefinition Width="0.197*"/>
                <ColumnDefinition Width="0.341*"/>
                <ColumnDefinition Width="0.274*"/>
                <ColumnDefinition Width="0.188*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Border BorderThickness="2" BorderBrush="Beige" Grid.Column="0" Grid.Row="0"  Grid.RowSpan="4"  VerticalAlignment="Center" Height="97" d:LayoutOverrides="GridBox" Margin="0,0,5,0">
            </Border>
            <TextBlock x:Name="yearTextBlock"  Margin="5,0,0,0" Grid.Column="1" Grid.Row="1" Text="{Binding Year, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}" />
            <TextBlock x:Name="makeTextBlock" Grid.Column="2" Grid.Row="1" Text="{Binding Make, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
            <TextBlock x:Name="modelTextBlock" Grid.Column="3" Grid.Row="1" Text="{Binding Model, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
            <TextBlock x:Name="vinTextBlock" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="2" Text="{Binding VIN, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
            <TextBlock x:Name="colorTextBlock" Grid.Column="3" Grid.Row="3" Text="{Binding Color, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
            <sdk:Label Grid.Column="2" Style="{StaticResource LabelStyle}" Content="Make"/>
            <sdk:Label Style="{StaticResource LabelStyle}" Margin="5,0,0,0" Grid.Column="1" Content="Year"/>
            <sdk:Label Style="{StaticResource LabelStyle}" Grid.Column="3" Content="Model"/>
            <sdk:Label Grid.Column="1" Grid.Row="2" Style="{StaticResource LabelStyle}" Content="VIN"/>
            <sdk:Label Style="{StaticResource LabelStyle}" Grid.Column="3" Grid.Row="2" Content="Color"/>
        </Grid>
    </DataTemplate>

    <!--x:Name="vehicleCarDataTemplate"-->
    <DataTemplate DataType="models:Car" >
            <Grid Width="661" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="98"/>
                    <ColumnDefinition Width="0.197*"/>
                    <ColumnDefinition Width="0.341*"/>
                    <ColumnDefinition Width="0.274*"/>
                    <ColumnDefinition Width="0.188*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Border BorderThickness="2" BorderBrush="Beige" Grid.Column="0" Grid.Row="0"  Grid.RowSpan="4"  VerticalAlignment="Center" Height="97" d:LayoutOverrides="GridBox"  Margin="0,0,5,0" Background="{StaticResource YellowBrush}">
                    <Image Source="/InsuranceAdjuster;component/Assets/VehicleCarIcon.png" Stretch="Uniform" Height="54" Width="50"/>
                </Border>
                <TextBlock x:Name="yearTextBlock" Grid.Column="1" Grid.Row="1" Text="{Binding Year, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}" />
                <TextBlock x:Name="makeTextBlock" Grid.Column="2" Grid.Row="1" Text="{Binding Make, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
                <TextBlock x:Name="modelTextBlock" Grid.Column="3" Grid.Row="1" Text="{Binding Model, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
                <TextBlock x:Name="vinTextBlock" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="2" Text="{Binding VIN, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
                <TextBlock x:Name="colorTextBlock" Grid.Column="3" Grid.Row="3" Text="{Binding Color, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
                <Border BorderThickness="2" Grid.Column="4" Grid.Row="0" Grid.RowSpan="4" BorderBrush="Beige">
                    <StackPanel  >
                        <TextBlock Text="Passengers" HorizontalAlignment="Center"/>
                        <TextBlock FontSize="48" Text="{Binding MaxPassengers, Mode=TwoWay}" HorizontalAlignment="Center" Foreground="{StaticResource MainTextColor}"/>
                    </StackPanel>
                </Border>
                <sdk:Label Grid.Column="2" Style="{StaticResource LabelStyle}" Content="Make"/>
                <sdk:Label Style="{StaticResource LabelStyle}"  Grid.Column="1" Content="Year"/>
                <sdk:Label Style="{StaticResource LabelStyle}" Grid.Column="3" Content="Model"/>
                <sdk:Label Grid.Column="1" Grid.Row="2" Style="{StaticResource LabelStyle}" Content="VIN"/>
                <sdk:Label Style="{StaticResource LabelStyle}" Grid.Column="3" Grid.Row="2" Content="Color"/>
            </Grid>
    </DataTemplate>
    
    <!--x:Name="vehicleTruckDataTemplate"-->
    <DataTemplate DataType="models:Truck" >
            <Grid Width="661" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="98"/>
                    <ColumnDefinition Width="0.197*"/>
                    <ColumnDefinition Width="0.341*"/>
                    <ColumnDefinition Width="0.274*"/>
                    <ColumnDefinition Width="0.188*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Border BorderThickness="2" BorderBrush="Beige" Grid.Column="0" Grid.Row="0"  Grid.RowSpan="4"  VerticalAlignment="Center" Height="97" d:LayoutOverrides="GridBox" Margin="0,0,5,0" Background="{StaticResource YellowBrush}">
                    <Image Source="/InsuranceAdjuster;component/Assets/VehicleTruckIcon.png" Stretch="Uniform" Height="54" Width="50"/>
                </Border>
                <TextBlock x:Name="yearTextBlock" Grid.Column="1" Grid.Row="1" Text="{Binding Year, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}" />
                <TextBlock x:Name="makeTextBlock" Grid.Column="2" Grid.Row="1" Text="{Binding Make, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
                <TextBlock x:Name="modelTextBlock" Grid.Column="3" Grid.Row="1" Text="{Binding Model, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
                <TextBlock x:Name="vinTextBlock" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="2" Text="{Binding VIN, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
                <TextBlock Grid.Column="3" Grid.Row="4" Text="{Binding GrossWeight, Converter={StaticResource StringFormatValueConverter}, ConverterParameter=\{0:0\,0\} }"  Style="{StaticResource VehicleDataStyle}"/>
                <Border BorderThickness="2" Grid.Column="4" Grid.Row="0" Grid.RowSpan="4" BorderBrush="Beige">
	                    <StackPanel  >
							<StackPanel Orientation="Horizontal" Height="60" HorizontalAlignment="Left" VerticalAlignment="Center">
                            <sdk:Label Content="Height" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" Style="{StaticResource LabelStyle}" VerticalAlignment="Center"  >
									<sdk:Label.RenderTransform>
										<CompositeTransform Rotation="-90"/>
									</sdk:Label.RenderTransform>
								</sdk:Label>
                            <TextBlock Text="{Binding Height, Converter={StaticResource StringFormatValueConverter}, ConverterParameter=\{0\}\&quot;}"  HorizontalAlignment="Center" Style="{StaticResource VehicleDataStyle}" VerticalAlignment="Center"/>
						</StackPanel>
                        <sdk:Label Style="{StaticResource LabelStyle}"  Content="Length" HorizontalAlignment="Center"/>
                        <TextBlock Text="{Binding Length, Converter={StaticResource StringFormatValueConverter}, ConverterParameter=\{0\}\'}"  HorizontalAlignment="Center" Style="{StaticResource VehicleDataStyle}"/>
                    </StackPanel>
                    </Border>
                <sdk:Label Grid.Column="2" Style="{StaticResource LabelStyle}" Content="Make"/>
                <sdk:Label Style="{StaticResource LabelStyle}"  Grid.Column="1" Content="Year"/>
                <sdk:Label Style="{StaticResource LabelStyle}" Grid.Column="3" Content="Model"/>
                <sdk:Label Grid.Column="1" Grid.Row="2" Style="{StaticResource LabelStyle}" Content="VIN"/>
                <sdk:Label Style="{StaticResource LabelStyle}" Grid.Column="3" Grid.Row="2" Content="Gross Weight"/>
            </Grid>
    </DataTemplate>
    
        <!--x:Name="vehicleMotorcycleDataTemplate"-->
    <DataTemplate DataType="models:Motorcycle" >
        <Grid Width="661" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="98"/>
                <ColumnDefinition Width="0.197*"/>
                <ColumnDefinition Width="0.341*"/>
                <ColumnDefinition Width="0.274*"/>
                <ColumnDefinition Width="0.188*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Border BorderThickness="2" BorderBrush="Beige" Grid.Column="0" Grid.Row="0"  Grid.RowSpan="4"  VerticalAlignment="Center" Height="97" d:LayoutOverrides="GridBox"  Margin="0,0,5,0" Background="{StaticResource YellowBrush}">
                <Image Source="/InsuranceAdjuster;component/Assets/VehicleMotorcycleIcon.png" Stretch="Uniform" Height="54" Width="50" />
            </Border>
            <TextBlock x:Name="yearTextBlock" Grid.Column="1" Grid.Row="1" Text="{Binding Year, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}" />
            <TextBlock x:Name="makeTextBlock" Grid.Column="2" Grid.Row="1" Text="{Binding Make, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
            <TextBlock x:Name="modelTextBlock" Grid.Column="3" Grid.Row="1" Text="{Binding Model, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
            <TextBlock x:Name="vinTextBlock" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="2" Text="{Binding VIN, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
            <TextBlock x:Name="colorTextBlock" Grid.Column="3" Grid.Row="3" Text="{Binding Color, Mode=TwoWay}" Style="{StaticResource VehicleDataStyle}"/>
            <sdk:Label Grid.Column="2" Style="{StaticResource LabelStyle}" Content="Make"/>
            <sdk:Label Style="{StaticResource LabelStyle}"  Grid.Column="1" Content="Year"/>
            <sdk:Label Style="{StaticResource LabelStyle}" Grid.Column="3" Content="Model"/>
            <sdk:Label Grid.Column="1" Grid.Row="2" Style="{StaticResource LabelStyle}" Content="VIN"/>
            <sdk:Label Style="{StaticResource LabelStyle}" Grid.Column="3" Grid.Row="2" Content="Color"/>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="StateDataTemplate2">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding StateCode}" Margin="0,0,10,0"/>
                <TextBlock Text="{Binding StateName}"
                />
            </StackPanel>
    </DataTemplate>
</ResourceDictionary>
    
